package cn.mothin.service.common;

import java.util.List;

import org.springframework.stereotype.Service;

import cn.mothin.frame.core.base.BaseService;
import cn.mothin.frame.core.interfaces.IEntityDisplay;
import cn.mothin.frame.util.SpringUtil;
import cn.mothin.vo.common.DisplayForm;

@Service("5421978ca299f3bbe8ed9ba5")
public class DisplayService extends BaseService {
    public String query(DisplayForm form) {
        String data = null;
        List<IEntityDisplay> list = SpringUtil.getClassListWithInterface(IEntityDisplay.class);
        for (IEntityDisplay entityDisplay : list) {
            data = entityDisplay.queryDisplay(form.getId());
            if (data != null) {
                return data;
            }
        }
        return "";
    }
}
